package com.cunshe.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * 产品系列
 * @author xiao
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SeriesInsertVO implements Serializable {

    /**
     * 上级ID
     */
    @ApiModelProperty(value = "上级ID")
    @NotNull(message = "[parentId]不能为空")
    private Long parentId;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @NotBlank(message = "[name]不能为空")
    @Size(max = 100, message = "${validatedValue}长度不能大于{max}")
    private String name;

    private static final long serialVersionUID = 1L;
}